package StateManagementIRPConstDefs;
/**
 * Generated from IDL enum "ProceduralStatusValues".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ProceduralStatusValues
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _InitializationRequired = 0;
	public static final ProceduralStatusValues InitializationRequired = new ProceduralStatusValues(_InitializationRequired);
	public static final int _NotInitialized = 1;
	public static final ProceduralStatusValues NotInitialized = new ProceduralStatusValues(_NotInitialized);
	public static final int _Initializing = 2;
	public static final ProceduralStatusValues Initializing = new ProceduralStatusValues(_Initializing);
	public static final int _Reporting = 3;
	public static final ProceduralStatusValues Reporting = new ProceduralStatusValues(_Reporting);
	public static final int _Terminating = 4;
	public static final ProceduralStatusValues Terminating = new ProceduralStatusValues(_Terminating);
	public int value()
	{
		return value;
	}
	public static ProceduralStatusValues from_int(int value)
	{
		switch (value) {
			case _InitializationRequired: return InitializationRequired;
			case _NotInitialized: return NotInitialized;
			case _Initializing: return Initializing;
			case _Reporting: return Reporting;
			case _Terminating: return Terminating;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _InitializationRequired: return "InitializationRequired";
			case _NotInitialized: return "NotInitialized";
			case _Initializing: return "Initializing";
			case _Reporting: return "Reporting";
			case _Terminating: return "Terminating";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected ProceduralStatusValues(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
